<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>注册</h1>
	<form:form action="/springMVCDemo2/user/upload" enctype="multipart/form-data"  method="post" modelAttribute="info">
			用户名：<form:input path="name"></form:input></br>
			密码:<form:password path="pwd" value="${info.pwd }"></form:password><br/>
			<form:radiobutton path="sex" value="男"></form:radiobutton>男
			<form:radiobutton path="sex" value="女"></form:radiobutton>女<br/>
			<form:textarea path="name"></form:textarea>
			<form:radiobuttons path="rolesid" items="${list }" itemValue="id" itemLabel="name"></form:radiobuttons>
			<form:checkboxes path="rolesid" items="${list }"  itemLabel="name"></form:checkboxes>
			<form:select path="rolesid">
				<form:options items="${list }" itemValue="id" itemLabel="name"/>
			</form:select></br>
			<input type="file" name="file">
			<a href="/springMVCDemo2/user/down?path=1.jpg">下载资料</a>
			<input type="submit" value="submit">
			
	</form:form>
</body>
</html>
